package gov.nist.healthcare.testframework.junit;

import gov.nist.healthcare.core.message.HL7Message;
import gov.nist.healthcare.testframework.application.TestAgent;
import java.util.ArrayList;
import java.util.List;

public class GenericTestAgentForTesting extends TestAgent {

    private List<HL7Message> receivedMessages;

    @Override
    public List<HL7Message> newMessage(HL7Message message) {
        receivedMessages = new ArrayList<HL7Message>();
        receivedMessages.add(message);
        return null;
    }

    @Override
    public boolean checkBeforeSending(HL7Message message) {
        return true;
    }

    public List<HL7Message> getReceivedMessages() {
        return receivedMessages;
    }
}
